package com.htzz.collection.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "查询工具类",description = "接口查询工具类")
public class QueryForDto1 {

    @NotEmpty
    @ApiModelProperty(value = "设备ID",example = "sn19990111")
    private String devId;
    @NotEmpty
    @ApiModelProperty(value = "采集点ID",example = "speed")
    private String k;

    @NotNull
    @ApiModelProperty(value = "开始时间",example = "2021-09-01 00:00:00")
    private String startTime;

    @NotNull
    @ApiModelProperty(value = "结束时间",example = "2021-09-30 00:00:00")
    private String endTime;

    @Min(1L)
    @ApiModelProperty(value = "当前页",example = "1")
    private int currentPage=1; //默认值 10

    @Min(1L)
    @Max(5000)
    @ApiModelProperty(value = "每页条数",example = "10")
    private int pagesize=10; //默认值 10

}
